*{
    padding: 0px;
    margin: 0px;


}
body{
    background-color: aquamarine;
}

header{
    display: block;
    width: 500px;
    height: 90px;
    margin: auto;
    /* text-align: center; */
    position: relative;
}
header h1{
    text-align: center;
    color: #6739b6;
}
header #newgamebutton{
    text-decoration: none;
    text-align: center;
    display: block;
    background-color: chocolate;
    width: 120px;
    padding: 10px;
    color: white;
    font-weight: bolder;
    border-radius: 10px;
    position: absolute;
    /* left: 360px;
    top: 50px; */
    right: 20px;
    top: 50px;
}
header #newgamebutton:hover{
    transform: scale(1.1);
    color: rgb(255, 0, 13);
    
}

header p{
    display: block;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    top: 60px;

}
header p span{
    color: red;
}


/* 容器部分：container */
#container{
    width: 500px;
    height: 500px;
    background-color: #BBADA0;
    border-radius: 10px;
    margin: 10px auto;
    position: relative;
    
}
#container .grid-cell{
    width: 100px;
    height: 100px;
    background-color: #CDC1B4;
    border-radius: 10px;
    position: absolute;
    
}
#container .grid-number{
    width: 20px;
    line-height: 20px;
    position: absolute;
    font-size: 5px;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
    color: white;
    
}
 #gameover{
    width: 500px;
    line-height: 500px;
    color: rgb(143, 231, 42);
    background-color: rgba(200, 200, 200, .3);
    border-radius: 10px;

    position: absolute;
    left: 0px;
    top: 0px;

    text-align: center;
    font-size: 60px;
    font-family: '幼圆';
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(255, 165, 0, 0.9),
                2px 2px 2px rgba(255, 165, 0, 0.8),
                0 3px 3px  rgba(255, 165, 0, 0.7),
                0 4px 4px  rgba(255, 165, 0, 0.6),
                0 5px 15px  rgba(255, 165, 0, 0.5);

    /* display: none; */
} 

#container .collide{
    animation: collide .3s;
}
@keyframes collide{
    0%{transform: scale(1.2);}
    100%{transform: scale(1);}
}

